

<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>试用版学习资源网</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js">
    </script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="md5.js"></script>
    <style>
        .col-md-4{
            width: 350px;
            border: 1px solid black;
            margin: 20px;
        }
    </style>
    <script>
        $(document).ready(function () {
            $("#logout").click(function () {
                $.post("./check.php",{
                    fun:"logout"
                },function (data,status) {
                    console.log(status);
                    $("#msgbox").removeClass("hide");
                })
            })
        })
    </script>
    <script type="text/javascript">
        $(function(){
            $("#msgbox").bind('closed.bs.alert', function () {
                window.location.reload();
            });
        });
    </script>

</head>
<body>



<div class="alert alert-warning hide" id="msgbox">
    <a href="#" class="close" data-dismiss="alert">
        &times;
    </a>
    <strong>已注销！</strong>您的账号已经注销。
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">学习资源网 试用版</a>
        </div>
        <div>

            <ul class="nav navbar-nav">
                <li class="active"><a href="?action=index">主页</a></li>
                <li><a class='<?php echo $hide;?>' href="?action=login">登入</a></li>
                <li><a id="logout" href="#"><?php echo $user;?></a></li>
            </ul>
        </div>
    </div>
</nav>


</body>

